package com.zhiche.lisa.bms.dao.model.invoice;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 申请开票明细-考核
 * </p>
 *
 * @author liuanshun
 * @since 2018-09-27
 */
@TableName("lisa_invoice_apply_asse")
public class InvoiceApplyAsse extends Model<InvoiceApplyAsse> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 主表id
     */
	@TableField("head_id")
	private Long headId;
    /**
     * 单据类型; 0-考核单, 1-奖励单
     */
	private Integer type;
    /**
     * 考核单号/奖励费用单号
     */
	@TableField("assess_code")
	private String assessCode;
    /**
     * 执行金额
     */
	@TableField("cur_use_money")
	private BigDecimal curUseMoney;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHeadId() {
		return headId;
	}

	public void setHeadId(Long headId) {
		this.headId = headId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getAssessCode() {
		return assessCode;
	}

	public void setAssessCode(String assessCode) {
		this.assessCode = assessCode;
	}

	public BigDecimal getCurUseMoney() {
		return curUseMoney;
	}

	public void setCurUseMoney(BigDecimal curUseMoney) {
		this.curUseMoney = curUseMoney;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "InvoiceApplyAsse{" +
			", id=" + id +
			", headId=" + headId +
			", assessCode=" + assessCode +
			", curUseMoney=" + curUseMoney +
			"}";
	}
}
